﻿
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using LybrixNursingCommon;

namespace LybrixNursingCRMDesktop
{
     class DemoDataGenerator
    {
        public static List<Prospect> InitProspects()
        {
            List<Prospect>  prospectList = new List<Prospect>();

            //Proppect
            var pros1 = new Prospect() { Id = "038844215", FirstName = "זאק", LastName = "דניאל", ProspectID = "1"  , BirthDate= DateTime.Now.AddYears(-77).ToShortDateString()};
            pros1.Address = new Address(){ Address_1 = "הנפח 12" , City = "כרמיאל" , ZipCode ="19875" };
            pros1.Contact = new Contact(){ ContactName = "הלוי חיים" , Fax = "046747754" , Phone1="0654422141" , Phone2 = "05245544745" , Email ="halevi@gmail.com" };
            pros1.ProspectStatus = InitProspectStatuses()[0];

            var pros2 = new Prospect() { Id = "0552144521", FirstName = "ג'וני", LastName = "ווקר", ProspectID = "2", BirthDate = DateTime.Now.AddYears(-70).ToShortDateString() };
            pros2.Address = new Address() { Address_1 = "הנפח 12", City = "כרמיאל", ZipCode = "19875" };
            pros2.Contact = new Contact() { ContactName = "הילה כהן", Fax = "046747754", Phone1 = "02210000141", Phone2 = "05245544745", Email = "halevi@gmail.com" };
            pros2.ProspectStatus = InitProspectStatuses()[1];
           
            var pros3 = new Prospect() {Id = "036552115", FirstName = "וולט", LastName = "דיזני", ProspectID = "3", BirthDate = DateTime.Now.AddYears(-72).ToShortDateString() };
            pros3.Address = new Address() { Address_1 = "הנפח 12", City = "כרמיאל", ZipCode = "19875" };
            pros3.Contact = new Contact() { ContactName = "יונית רחמים", Fax = "046747754", Phone1 = "05456466441", Phone2 = "05245544745", Email = "halevi@gmail.com" };
            pros3.ProspectStatus = InitProspectStatuses()[0];
          
            var pros4 = new Prospect() { Id = "0877445521", FirstName = "ראמוס", LastName = "מונסטר", ProspectID = "4", BirthDate = DateTime.Now.AddYears(-79).ToShortDateString() };
            pros4.Address = new Address() { Address_1 = "הנפח 12", City = "כרמיאל", ZipCode = "19875" };
            pros4.Contact = new Contact() { ContactName = "אמנדה בלו", Fax = "046747754", Phone1 = "0557465411", Phone2 = "05245544745", Email = "halevi@gmail.com" };
            pros4.ProspectStatus = InitProspectStatuses()[1];

            var pros5 = new Prospect() { Id = "032211254", FirstName = "חניבעל", LastName = "לקטר", ProspectID = "5", BirthDate = DateTime.Now.AddYears(-75).ToShortDateString() };
            pros5.Address = new Address() { Address_1 = "הנפח 12", City = "כרמיאל", ZipCode = "19875" };
            pros5.Contact = new Contact() { ContactName = "מארק בלאנק", Fax = "046747754", Phone1 = "0554522141", Phone2 = "05245544745", Email = "halevi@gmail.com" };
            pros5.ProspectStatus = InitProspectStatuses()[2];

            var pros6 = new Prospect() { Id = "022151125", FirstName = "בריאן", LastName = "בלומברג", ProspectID = "6", BirthDate = DateTime.Now.AddYears(-85).ToShortDateString() };
            pros6.Address = new Address() { Address_1 = "הנפח 12", City = "כרמיאל", ZipCode = "19875" };
            pros6.Contact = new Contact() { ContactName = "ישי ורון", Fax = "046747754", Phone1 = "06344466441", Phone2 = "05245544745", Email = "halevi@gmail.com" };
            pros6.ProspectStatus = InitProspectStatuses()[2];

            var pros7 = new Prospect() { Id = "036699885", FirstName = "מארק", LastName = "טווין", ProspectID = "7", BirthDate = DateTime.Now.AddYears(-82).ToShortDateString() };
            pros7.Address = new Address() { Address_1 = "הנפח 12", City = "כרמיאל", ZipCode = "19875" };
            pros7.Contact = new Contact() { ContactName = "אריק קלפטון", Fax = "046747754", Phone1 = "0897466001", Phone2 = "05245544745", Email = "halevi@gmail.com" };
            pros7.ProspectStatus = InitProspectStatuses()[3];

            var pros8 = new Prospect() { Id = "03322155548", FirstName = "אמנדה", LastName = "זייס", ProspectID = "8", BirthDate = DateTime.Now.AddYears(-90).ToShortDateString() };
            pros8.Address = new Address() { Address_1 = "הנפח 12", City = "כרמיאל", ZipCode = "19875" };
            pros8.Contact = new Contact() { ContactName = "סשה גולדשטין", Fax = "046747754", Phone1 = "0512221441", Phone2 = "05245544745", Email = "halevi@gmail.com" };
            pros8.ProspectStatus = InitProspectStatuses()[1];

              prospectList.Add(pros1);
              prospectList.Add(pros2);
              prospectList.Add(pros3);
              prospectList.Add(pros4);
              prospectList.Add(pros5);
              prospectList.Add(pros6);
              prospectList.Add(pros7);
              prospectList.Add(pros8);

    
           return prospectList;
        }

        public static List<ProspectStatus> InitProspectStatuses()
        {
            var list = new List<ProspectStatus>();

            list.Add(new ProspectStatus() { Id = 0, Status = "צריך טיפול" , Color="Red"});
            list.Add(new ProspectStatus() { Id = 1, Status = "בטיפול סוכן", Color = "Green" });
            list.Add(new ProspectStatus() { Id = 2, Status = "בבית אבות", Color = "Blue" });
            list.Add(new ProspectStatus() { Id = 3, Status = "נפטר", Color="Gray" });

            return list;
        }
    }
}
